<div class="container-fluid mt-4">
    <!-- 头部标题 -->
    <div class="card mb-2">
        <!--Card content-->
        <div class="card-body">
            <h6 class="mb-2 mb-sm-0 pt-1" style="text-align: center;">课程管理</h6>
        </div>
    </div>
    <!-- 头部标题-end -->
</div>
<div class="container-fluid">
    <div class="row">
        <div class="col-lg">
            <div class="card mb-2">
                <!--Card content-->
                <div class="card-body">
                    <form>
                        <div class="form-row align-items-center mb-3">
                            <div class="col-auto">
                                <div class="input-group input-group-sm">
                                    <input type="text" class="form-control" placeholder="课程名称">
                                    <div class="input-group-append">
                                        <button class="btn btn-outline-secondary" type="button">搜索</button>
                                    </div>
                                </div>
                            </div>
                            <div class="col-auto">
                                <button type="button" class="btn btn-success btn-sm" data-toggle="modal"
                                    data-target="#addCourse">添加新课程</button>
                            </div>
                        </div>
                    </form>
                    <table class="table table-striped table-bordered table-align">
                        <thead class="thead-dark">
                            <tr>
                                <th scope="col">课程编号</th>
                                <th scope="col">课程名称</th>
                                <th scope="col">课程状态</th>
                                <th scope="col">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <th>1</th>
                                <td>java</td>
                                <td class="text-success">启用</td>
                                <td>
                                    <button type="button" class="btn btn-danger btn-sm">禁用</button>
                                    <button type="button" class="btn btn-primary btn-sm" data-toggle="modal"
                                        data-target="#settingCourse">更新</button>
                                </td>
                            </tr>
                            <tr>
                                <th>2</th>
                                <td>html</td>
                                <td class="text-danger">禁用</td>
                                <td>
                                    <button type="button" class="btn btn-info btn-sm">启用</button>
                                    <button type="button" class="btn btn-primary btn-sm" data-toggle="modal"
                                        data-target="#settingCourse">更新</button>
                                </td>
                            </tr>
                            <tr>
                                <th>3</th>
                                <td>css</td>
                                <td class="text-success">启用</td>
                                <td>
                                    <button type="button" class="btn btn-danger btn-sm">禁用</button>
                                    <button type="button" class="btn btn-primary btn-sm" data-toggle="modal"
                                        data-target="#settingCourse">更新</button>
                                </td>
                            </tr>
                            <tr>
                                <th>4</th>
                                <td>javascript</td>
                                <td class="text-success">启用</td>
                                <td>
                                    <button type="button" class="btn btn-danger btn-sm">禁用</button>
                                    <button type="button" class="btn btn-primary btn-sm" data-toggle="modal"
                                        data-target="#settingCourse">更新</button>
                                </td>
                            </tr>
                            <tr>
                                <th>5</th>
                                <td>vue</td>
                                <td class="text-success">启用</td>
                                <td>
                                    <button type="button" class="btn btn-danger btn-sm">禁用</button>
                                    <button type="button" class="btn btn-primary btn-sm" data-toggle="modal"
                                        data-target="#settingCourse">更新</button>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 课程添加 -->
<div class="modal fade" id="addCourse" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-dialog-centered">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">课程添加</h5>
                <button type="button" class="close" data-dismiss="modal">
                    <span>×</span>
                </button>
            </div>
            <div class="modal-body">
                <form>
                    <div class="form-group">
                        <label for="coursename">课程名称</label>
                        <input type="text" class="form-control" id="coursename">
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary">添加</button>
            </div>
        </div>
    </div>
</div>
<!-- 课程添加-结束 -->
<!-- 课程修改 -->
<div class="modal fade" id="settingCourse" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-dialog-centered">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">课程修改</h5>
                <button type="button" class="close" data-dismiss="modal">
                    <span>×</span>
                </button>
            </div>
            <div class="modal-body">
                <form>
                    <div class="form-group">
                        <label for="course1">课程编号</label>
                        <input type="text" class="form-control" value="1" id="course1" readonly>
                    </div>
                    <div class="form-group">
                        <label for="coursename1">课程名称</label>
                        <input type="text" class="form-control" value="java" id="coursename1">
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary">更新</button>
            </div>
        </div>
    </div>
</div>
<!-- 课程修改-结束 -->
<script>

</script>